package cn.kgc.springcloud.client;

import cn.kgc.springcloud.fallback.Service2ClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 课工场
 * @date 2024/7/23
 * @description
 */
@FeignClient(value = "HYSTRIXSERVICE2",fallback = Service2ClientFallback.class )
public interface Service2Client {

    @GetMapping("/s2/m1")
    String method1(@RequestParam("id") Integer id);
}
